import Rectangle from '@/base/Rectangle';
import XUE from '../XUE';

XUE.registerComponent('rectangle', {
    name: '长方形',
    getEntity(canvas, defaultStyle) {
      return new Rectangle(canvas, {
          left: 0,
          bottom: 0,
          width: '100%',
          height: '100%',
      });
    },
    defaultStyle: {
        left: '120px',
        bottom: '240px',
        color: '#32B4FF',
        type: Rectangle.TYPE.FILL,
    },
});
